package com.webmagic.demo.mv;

import us.codecraft.webmagic.ResultItems;
import us.codecraft.webmagic.Task;
import us.codecraft.webmagic.pipeline.Pipeline;

/**
 * @description
 * @Auther zhanglu
 * @Date 2018/4/17 上午1:26
 */
public class SpiderService implements Pipeline {
    @Override
    public void process(ResultItems resultItems, Task task) {
        Object object = resultItems.get("bean");
        if (object != null) {
            MoveDO mv = (MoveDO) object;
            System.out.println(mv.toString());
        } else {
            System.out.println("no data!!!");
        }
    }
}
